Reactjs hook useState weird behaviour

welcome to shbcf.ru